<template>
  <!-- 头-->
  <view class="header">
    <view class="l">
      <image src="../../static/icons/home_active.png"></image>
      <text>Luckin Coffee</text>
    </view>
    <view class="r" @click="goHome">
      先逛一逛
    </view>
  </view>


</template>

<script>
  export default {
    name: "index_header",
    data() {
      return {

      };
    },
    methods: {
      goHome() {
        uni.switchTab({
          url: '/pages/index/index'
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80rpx;
    padding: 0 20rpx;
    margin-bottom: 180rpx;

    .l {
      display: flex;
      align-items: center;

      image {
        height: 60rpx;
        width: 60rpx;
      }

      text {
        font-weight: bold;
        margin-left: 20rpx;
        color: #808080;
      }
    }

    .r {
      font-weight: bold;
      color: #0c34ba;
      font-size: 24rpx
    }
  }
</style>
